﻿using MediatR;
using RBAC.LuFang.API.Application.Command.imgCommand;
using RBAC.LuFang.Domain.Traceability;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.API.Application.CommandHandlers.imgCommandHandler
{
    //显示屠宰下的企业照片
    public class GetslaEnterPicCommandHandler:IRequestHandler<GetslaEnterPicCommand,List<imges>>
    {
        private readonly IslaughterService _slaService;

        public GetslaEnterPicCommandHandler(IslaughterService slaService)
        {
            _slaService = slaService;
        }

        public async Task<List<imges>> Handle(GetslaEnterPicCommand request, CancellationToken cancellationToken)
        {
            return await _slaService.GetslaEnterPic(request.imgtype, request.goodsid);
        }
    }
}
